﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;

namespace Server.Model
{
    public class PartReservation
    {
        [Key]
        public int Id { get; set; }
        //[Required]
        //public DateTime Date { get; set; }
        [Required]
        public virtual Reservation Reservation { get; set; }
        [Required]
        public virtual BatteryType BatteryType { get; set; }
        public virtual Battery Battery { get; set; }
        [Required]
        public virtual Station Station { get; set; }

        public PartReservation()
        {

        }
        public PartReservation(/*DateTime date,*/ Reservation reservation, BatteryType batteryType, Station station)
        {
            //this.Date = date;
            //this.Reservation = reservation;
            this.BatteryType = batteryType;
            this.Station = station;
        }
        
      
    }
}
